package com.yangzb.sample.kafka;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@Data
public class UserBehavior {
    @JsonProperty("user_id")
    private String userId;

    @JsonProperty("user_id1")
    private String userId1;

    @JsonProperty("user_id2")
    private String userId2;

    @JsonProperty("user_id3")
    private String userId3;

    @JsonProperty("user_id4")
    private String userId4;

    @JsonProperty("item_id")
    private String itemId;
    @JsonProperty("category_id")
    private String categoryId;
    @JsonProperty("behavior")
    private String behavior;
    @JsonProperty("ts")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date ts;
}
